package com.itheima.ZuoYe04;

public class Cat {
    String color;
    int age;
    void cat(){
        System.out.print("他是"+color+"色的"+"他"+age+"岁了");
    }

    public Cat() {
    }

    public Cat(String color, int age) {
        this.color = color;
        this.age = age;
    }

    public String getColor() {
        return color;
    }

    public void setColor(String color) {
        this.color = color;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }
}
